package com.tuanzi.loan.business.repository.family;

import com.tuanzi.loan.business.entity.family.ProductInfo;
import com.tuanzi.loan.business.repository.family.custom.ProductInfoRepositoryCustom;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

import java.util.List;

/**
 * @author Ray 2017/09/21
 */
public interface ProductInfoRepository extends ProductInfoRepositoryCustom, JPAAuditRepository<ProductInfo, Long> {
    List<ProductInfo> findAllByCompanyId(Long companyId);

    ProductInfo findProductInfoByName(String name);
}
